﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ThamDinhKinhPhi.ascx.cs" Inherits="QuanLyDeTaiKHCN.UserControls.Manager.ThamDinhKinhPhi" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<asp:UpdatePanel ID="udt1" runat="server">
    <ContentTemplate>
        <div class="control-group info row-fluid">
            <div style="text-align:center;">
                <asp:Label ID="lblchophepthuchien" runat="server" ForeColor="Red"></asp:Label>
            </div>
            <asp:Panel ID="pndanhsachdetaiduan" runat="server">
                <fieldset style="padding-bottom: 5px;width:100%;">
                    <legend>Thông tin thẩm định kinh phí</legend>
                    <label class="control-label" style="width: 300px; padding-right: 10px;">Ngày thẩm định kinh phí </label>
                    <div class="controls">
                        <asp:TextBox ID="txtNgayThamDinh" placeholder="Ngày/tháng/năm" runat="server" CssClass="span3" onblur="KiemTraInjection(this);"></asp:TextBox>
                        <asp:ImageButton runat="Server" ID="Image1" ImageUrl="~/CSS/images/lich.gif" AlternateText="Click để hiển thị ngày tháng năm" />
                        <ajaxToolkit:CalendarExtender ID="calendarButtonExtender2" runat="server" TargetControlID="txtNgayThamDinh" PopupButtonID="Image1" Format="dd/MM/yyyy" />
                        <ajaxToolkit:MaskedEditExtender ID="MaskedEditExtender2" MaskType="Date" runat="server" Mask="99/99/9999" TargetControlID="txtNgayThamDinh"></ajaxToolkit:MaskedEditExtender>
                        <asp:RequiredFieldValidator runat="server" ValidationGroup="kiemtra" ID="RequiredFieldValidator2" ControlToValidate="txtNgayThamDinh" Text="Nhập ngày thẩm định kinh phí" ForeColor="Red" Display="Dynamic"></asp:RequiredFieldValidator>
                    </div>
                    <div style="height: 5px;"></div>
                    <label class="control-label" style="width: 300px; padding-right: 10px;">Quyết định thành lập tổ thẩm định kinh phí</label>
                    <div class="controls">
                        <asp:TextBox ID="txtSoQuyetDinhThanhLapToThamDinhKinhPhi" runat="server" CssClass="span3"></asp:TextBox>
                        <span style="color: #3A87BE;">&nbsp;Ngày&nbsp;</span>
                        <asp:TextBox ID="txtNgay" placeholder="Ngày/tháng/năm" runat="server" CssClass="span3" onblur="KiemTraInjection(this);"></asp:TextBox>
                        <asp:ImageButton runat="Server" ID="ImageButton2" ImageUrl="~/CSS/images/lich.gif" AlternateText="Click để hiển thị ngày tháng năm" />
                        <ajaxToolkit:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtNgay" PopupButtonID="ImageButton2" Format="dd/MM/yyyy" />
                        <ajaxToolkit:MaskedEditExtender ID="MaskedEditExtender1" MaskType="Date" runat="server" Mask="99/99/9999" TargetControlID="txtNgay"></ajaxToolkit:MaskedEditExtender>
                    </div>
                    <div style="height: 5px;"></div>
                    <label class="control-label" style="width: 300px; padding-right: 10px;">Tổng kinh phí sau thẩm định</label>
                    <div class="controls">
                        <asp:TextBox ID="txtTongKinhPhiThamDinh" runat="server" CssClass="span3"></asp:TextBox>
                        <ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" runat="server" FilterType="Numbers" TargetControlID="txtTongKinhPhiThamDinh"></ajaxToolkit:FilteredTextBoxExtender>
                        <asp:RequiredFieldValidator runat="server" ID="yc" ValidationGroup="kiemtra" Display="Dynamic" ControlToValidate="txtTongKinhPhiThamDinh" Text="Nhập tổng kinh phí" ForeColor="Red"></asp:RequiredFieldValidator>
                    </div>
                    <div style="height: 5px; clear: both;"></div>
                    <label class="control-label" style="width: 300px; padding-right: 10px;"></label>
                    <div class="controls">
                        <asp:LinkButton ID="btnsave" Width="100" class="btn btn-primary" OnClick="btnsave_Click" ValidationGroup="kiemtra" runat="server"><i class=" icon-save"></i>&nbsp;&nbsp;Lưu</asp:LinkButton>
                        <asp:Label ID="lblstatus" runat="server" ForeColor="Red"></asp:Label>
                        <br />
                    </div>
                </fieldset>
                <div style="height: 15px; clear: both;"></div>
                <fieldset>
                    <legend>File biên bản thẩm định</legend>
                    <label class="control-label" style="width: 250px; padding-right: 10px;">File biên bản thẩm định</label>
                    <div class="controls">
                        <asp:FileUpload ID="filebienban" runat="server" />
                    </div>
                    <div style="height: 5px;"></div>
                    <label class="control-label" style="width: 250px; padding-right: 10px;">Trích yếu</label>
                    <div class="controls">
                        <asp:TextBox ID="txtghichufilethuyetminh" runat="server" TextMode="MultiLine" Height="50" CssClass="span6" onblur="KiemTraInjection(this);"></asp:TextBox>
                    </div>
                    <div style="height: 5px; clear: both"></div>
                    <label class="control-label" style="width: 250px; padding-right: 10px;">Ngày nhận</label>
                    <div class="controls">
                        <asp:TextBox ID="txtNgayNhan" placeholder="Ngày/tháng/năm" runat="server" CssClass="span2" onblur="KiemTraInjection(this);"></asp:TextBox>
                        <asp:ImageButton runat="Server" ID="ImageButton1" ImageUrl="~/CSS/images/lich.gif" AlternateText="Click để hiển thị ngày tháng năm" />
                        <ajaxToolkit:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="txtNgayNhan" PopupButtonID="ImageButton1" Format="dd/MM/yyyy" />
                        <ajaxToolkit:MaskedEditExtender ID="MaskedEditExtender3" MaskType="Date" runat="server" Mask="99/99/9999" TargetControlID="txtNgayNhan"></ajaxToolkit:MaskedEditExtender>
                        <asp:RequiredFieldValidator runat="server" ValidationGroup="kiemtra1" ID="RequiredFieldValidator7" ControlToValidate="txtNgayNhan" Text="Nhập ngày nhận" ForeColor="Red" Display="Dynamic"></asp:RequiredFieldValidator>
                    </div>
                    <div style="height: 5px;"></div>
                    <label class="control-label" style="width: 250px; padding-right: 10px;"></label>
                    <div class="controls">
                        <asp:LinkButton ID="LinkAddFile" class="btn btn-primary" runat="server" OnClick="LinkAddFile_Click"><i class="icon-file-alt"></i>&nbsp;&nbsp;Thêm</asp:LinkButton>
                        <asp:Label ID="lblmessage" runat="server" ForeColor="Red"></asp:Label>
                    </div>
                    <div style="height: 5px;"></div>
                    <div style="height: 5px; clear: both;"></div>
                    <asp:GridView ID="grid" runat="server" AutoGenerateColumns="False" DataKeyNames="ID" ForeColor="#333333" OnRowDeleting="grid_RowDeleting">
                        <AlternatingRowStyle BackColor="White" />
                        <Columns>
                            <asp:TemplateField HeaderText="Trích yếu">
                                <ItemTemplate>
                                    <%#Eval("TrichYeu") %>
                                    <asp:Label ID="lblFileName" runat="server" Visible="false" Text='<%#Eval("FileThuyetMinh") %>'></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="ItemGridCell" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Ngày">
                                <ItemTemplate>
                                    <%#Eval("NgayLuu") %>
                                </ItemTemplate>
                                <ItemStyle CssClass="ItemGridCell" HorizontalAlign="Center" VerticalAlign="Middle" />
                            </asp:TemplateField>
                            <asp:TemplateField ShowHeader="true" HeaderText="Xóa">
                                <ItemTemplate>
                                    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Delete" Text="<i class='icon-remove red'></i> Xóa"></asp:LinkButton>
                                </ItemTemplate>
                                <ItemStyle CssClass="ItemGridCell" HorizontalAlign="Center" VerticalAlign="Middle" />
                            </asp:TemplateField>
                            <asp:TemplateField ShowHeader="true" HeaderText="Xem">
                                <ItemTemplate>
                                    <%--<a href='<%="./?mod="+_se.Encrypt("Xem_online_hoso","gold",128)+"&id="+Request.QueryString["id"]%>&linkonline=<%#Eval("Fileonline")%>' title="Chọn để xem nội dung"><i class='icon-folder-open-alt'></i>&nbsp;Xem</a>--%>
                                    <a href='<%#QuanLyDeTaiKHCN.Obj_class.PageURL.local+"filehoso/"+Eval("FileThuyetMinh")%>'title="Chọn để xem nội dung"><i class='icon-folder-open-alt'></i>&nbsp;Xem</a>
                                </ItemTemplate>
                                <ItemStyle CssClass="ItemGridCell" HorizontalAlign="Center" VerticalAlign="Middle" />
                            </asp:TemplateField>
                        </Columns>
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#EFF3FB" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <SortedAscendingCellStyle BackColor="#F5F7FB" />
                        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                        <SortedDescendingCellStyle BackColor="#E9EBEF" />
                        <SortedDescendingHeaderStyle BackColor="#4870BE" />
                    </asp:GridView>

                </fieldset>
            </asp:Panel>
        </div>
    </ContentTemplate>
    <Triggers>
        <asp:PostBackTrigger ControlID="LinkAddFile" />
    </Triggers>
</asp:UpdatePanel>